#ifndef MEDIATOR_PATTERN_H
#define MEDIATOR_PATTERN_H

#include <string>

using namespace std;

class User
{
public:
    User(string name);
    ~User() {}
    string getName();
    void setName(string name);
    void sendMessage(string message);

private:
    string name;
};

class ChatRoom
{
public:
    ~ChatRoom() {}

    static void showMessage(User* user, string message);

};

#endif // MEDIATOR_PATTERN_H

/*
    User* robert = new User("Robert");
    User* john = new User("John");

    robert->sendMessage("Hi! John!");
    john->sendMessage("Hello! Robert~");
    */
